Message = function (url) {
	this.action = url;
	this.method = "POST";
	this.consumerKey = "2389617439";
	this.consumerSecret = "d92fef9074e9a509187c9c6271e0e1e8";
	this.oauthTokenSecret = "";
	this.parameters = [
		['oauth_consumer_key', this.consumerKey],
		['oauth_signature_method', 'HMAC-SHA1'],
		['oauth_timestamp', ''],
		['oauth_nonce', ''],
		['oauth_signature', '']
	];
}	
	
Message.prototype.setOAuthToken = function(oauthToken){
	this.parameters.push(['oauth_token', oauthToken]);
}
	
Message.prototype.setOAuthTokenSecret = function(oauthTokenSecret){
	this.oauthTokenSecret = oauthTokenSecret;
};
	
Message.prototype.setOAuthVerifier = function(oauthVerifier){
	this.parameters.push(['oauth_verifier', oauthVerifier]);
}
	
Message.prototype.setMessage = function(message){
	this.parameters.push(['status', message]);
}
	
Message.prototype.sign = function(){
	var msg = { action : this.action, method : this.method, parameters : this.parameters };
	var accessor = { consumerSecret : this.consumerSecret, tokenSecret : this.oauthTokenSecret };
	OAuth.setTimestampAndNonce(msg);
	OAuth.SignatureMethod.sign(msg, accessor);
	return OAuth.getParameterMap(msg.parameters);
}
